lst=eval(input())
def paixu(c):
    a=len(c)
    for i in range(a):
        for i in range(a):
            if i<a-1:
                if abs(c[i])>abs(c[i+1]):
                    c[i],c[i+1]=c[i+1],c[i]
    c.reverse()
    print(c)
paixu(lst)
